package com.mop.core.es.dao.plugins.index;

/**
 * @author lemon
 * @ClassName FieldType
 * @desc
 * @Date 2019/1/5 13:23
 * @Version 1.0
 **/
public enum FieldType {

    STRING_TEXT("text", "可以检索"),
    STRING_KEYWORD("keyword", "不可以检索"),

    NUMERIC_LONG("long", ""),
    NUMERIC_INTEGER("integer", ""),
    NUMERIC_SHORT("short", ""),
    NUMERIC_BYTE("byte", ""),
    NUMERIC_DOUBLE("double", ""),
    NUMERIC_FLOAT("float", ""),
    NUMERIC_HALF_FLOAT("half_float", ""),
    NUMERIC_SCALED_FLOAT("scaled_float", ""),

    DATE_DATE("date", ""),

    BOOLEAN_BOOLEAN("boolean", ""),

    BINARY_BINARY("binary", ""),

    RANGE_INTEGER_RANGE("integer_range", ""),
    RANGE_FLOAT_RANGE("float_range", ""),
    RANGE_LONG_RANGE("long_range", ""),
    RANGE_IDOUBLE_RANGE("double_range", ""),
    RANGE_DATE_RANGE("date_range", ""),

    GEO_POINT("geo_point", ""),
    GEO_SHAPE("geo_shape", ""),

    IP_IP("ip", ""),
    ;

    private String typeName;

    private String typeDesc;

    FieldType(String typeName, String typeDesc) {
        this.typeName = typeName;
        this.typeDesc = typeDesc;
    }

    public String getTypeName() {
        return typeName;
    }

    public void setTypeName(String typeName) {
        this.typeName = typeName;
    }

    public String getTypeDesc() {
        return typeDesc;
    }

    public void setTypeDesc(String typeDesc) {
        this.typeDesc = typeDesc;
    }
}
